//
//  JWPicker.h
//  wolf3d
//
//  Created by James Weatherley on 09/10/2009.
//  Copyright 2009 James Weatherley. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <OpenGLES/ES1/gl.h>
#import "JWEntity.h"
#import "../env/vector.h"

@class JWLandscape;


@interface JWPicker : NSObject {

	JWLandscape* landscape;
}

@property (readonly) JWLandscape* landscape;

+(JWPicker*)picker;

-(id)initWithLandscape:(JWLandscape*)land;
-(void)changeLandscape:(JWLandscape*)land;

-(JWSquare*)pickUsingScreenCoordinates:(CGPoint)point;
-(NSArray*)squaresInPickViewAlong:(vec3_t)vector3 from:(vec3_t)point3;
-(JWSquare*)pickUsingWorldCoordinatesAlong:(vec3_t)vector3 from:(vec3_t)point3;


-(void)clearSelection;

@end
